<template>
  <div id="Equipment">
    <div class="leftEqu">
      <div
        :class="{ activedBossStyle: actived == 'one' }"
        @click="changeActived('one')"
      >
        I型舱筏隔振装置
      </div>
      <div
        :class="{ activedBossStyle: actived == 'two' }"
        @click="changeActived('two')"
      >
        II型舱筏隔振装置
      </div>
      <div
        :class="{ activedBossStyle: actived == 'three' }"
        @click="changeActived('three')"
      >
        III型舱筏隔振装置
      </div>
      <div
        :class="{ activedBossStyle: actived == 'four' }"
        @click="changeActived('four')"
      >
        IV型舱筏隔振装置
      </div>
    </div>
    <div class="centerEqu">
      <div>开机操作</div>
      <div>关机操作</div>
      <div>A故障维护与检修</div>
      <div>B故障维护与检修</div>
      <div>C故障维护与检修</div>
    </div>
    <div class="rightEqu">
      <div>原理讲解</div>
      <div>模拟操作</div>
      <div>模拟考核</div>
    </div>
  </div>
</template>
  
  <script>
export default {
  data() {
    return {
      actived: "one",
    };
  },
  methods: {
    changeActived(val) {
      this.actived = val;
    },
  },
};
</script>
  
  <style lang="scss" scoped>
#Equipment {
  width: 96%;
  height: 54%;
  margin: 20px auto;
  display: flex;
  .leftEqu {
    width: 300px;
    height: 100%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: #2b4366;
    padding: 0 20px 0 20px;
    div {
      color: white;
      padding: 10px;
      font-size: 20px;
      background-color: #1a3e56;
      cursor: pointer;
    }
    .activedBossStyle {
      color: yellow;
    }
  }
  .centerEqu {
    width: 900px;
    height: 100%;
    background: #2b4366;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    div {
      width: 300px;
      color: white;
      margin-left: 80px;
      padding: 20px;
      font-size: 20px;
      background-color: #1a3e56;
    }
  }
  .rightEqu {
    margin-left: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    div {
      width: 200px;
      text-align: center;
      color: white;
      padding: 10px;
      font-size: 20px;
      background-color: #1a3e56;
      border: 1px solid blue;
    }
  }
}
</style>